package pojo.Calcuator

class Calculation() {
  var a: Double = _
  var b: Double = _

  def this(a: Double, b: Double) {
    this()
    this.a = a
    this.b = b
  }

  def add(): Double = {
    a + b
  }

  def sub(): Double = {
    a - b
  }

  def mul(): Double = {
    a * b
  }

  def div(): Double = {
    a / b
  }
}
